package com.wjk.kylin.modules.generator.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjk.kylin.modules.generator.entity.GenTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 业务表 gen_table Mapper 接口
 * </p>
 *
 * @author wangjkui
 * @since 2020-08-29
 */
@Mapper
public interface GenTableMapper extends BaseMapper<GenTable> {

    IPage<GenTable> findPage(Page<GenTable> page, @Param("genTable") GenTable genTable);

    /**
     * 查询db数据
     * @param page
     * @param genTable
     * @return
     */
    IPage<GenTable> findDbPage(Page<GenTable> page, @Param("genTable") GenTable genTable);

    /**
     * 根据tableNames 查询db数据
     * @param tableNames
     * @return
     */
    List<GenTable> findDbTableListByNames(String[] tableNames);
}
